One special feature of the break statement is that it breaks completely out of the loop, thereby skipping any else clause that follows the loop. break语句的一个特殊特性是,它完全中断循环,并跳转到循环下面的任一个else子句。
Often, these two statements are placed in the body of an if statement so that the continue or break action is triggered by a special condition. 这两个语句通常放在if语句体中,以便由一个特殊的条件触发continue或break操作。
A table-or field-name change would break an embedded SQL statement, and a URL change would break an embedded Ajax call. 表名或字段名的更改会破坏嵌入式的SQL语句,URL的更改则会破坏嵌入式的Ajax调用。
At this point, the break statement causes program execution to break out of the while loop, skipping the else clause. 此时,break语句导致程序执行中断while循环,跳转到else子句。
Let's break the statement down. 我们分解这个语句。
However, inside the loop there is a break statement that will break out of the loop. 然而,循环内部有一个break语句,可中止循环。
This is the conventional way to build a switch statement, but the break is optional. 这是构建switch语句的一种传统方式,但break是可选的。
I think before before we take a short coffee break, I would like to read a preliminary statement prepared by Prof. 我想在我们休息喝咖啡前,宣读由斯坦贝克教授和我本人准备的一篇序言性的报告。
It's not a jump but rather a way to break out of an iteration statement. 它并不属于一次跳转,而是中断循环语句的一种方法。
The code between the case statement and the break keyword is executed if the condition is met. 如果满足条件,则执行case语句和break关键字之间的代码。
By hard-coding a break statement in the code he eliminates the need to manually set a break point. 在代码中硬编码断点声明后就不需要手工设置断点了。
No explicit break or exit statement is required. 不需要明确的中断或退出语句。